#!/usr/bin/python3
# -*- coding.utf-8 -*-
from fastapi import APIRouter, File, UploadFile
from day1.学生管理系统 import app01
from day2.成绩表 import app02
from day3.就业表 import app03
from day3.考勤表 import app04
from day3.response_demo import res_app
import uvicorn
import multipart

'''
    主入口
'''

from fastapi import FastAPI

app = FastAPI(
    title="沃林学生管理系统",
    description="对沃林所有的学员，学习过程，班级，成绩，就业，考勤进行管理",
    version="v0.0.1",
    contact={
        "name":"徐怀周",
        "email":"28933478961@qq.com"
    }
)

# 加载子路由
app.include_router(app01, prefix="/day01", tags=["学生基本信息管理系统"])
app.include_router(app02, prefix="/day02", tags=["学生成绩考核系统"])
app.include_router(app03, prefix="/day03", tags=["学生就业系统"])

app.include_router(app04, prefix="/day03", tags=["学生考勤系统"])
app.include_router(res_app, prefix="/day03", tags=["表单"])

if __name__ == '__main__':
    uvicorn.run('main:app', host='localhost', port=8000, reload=True)